/**
Company: Sarkar software technologys
WebSite: http://www.sarkar.cn
Author: yeganaaa
Date : 5/16/18
Time: 6:29 PM
 */

package Cn.Sarkar.IMS.Entities

import Cn.Sarkar.Entities.Common.BaseEntity
import Cn.Sarkar.Entities.IMS.IIMSApplicationDomain
import Cn.Sarkar.Entities.IMS.IShiftHistory
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.hasOne
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.IDataContext
import Cn.Sarkar.IMS.DataBaseDefinations.ShiftHistories
import org.joda.time.DateTime

class ShiftHistory(DataContext: IDataContext) : IShiftHistory, BaseEntity(DataContext, ShiftHistories) {
    var applicationDomainID by ShiftHistories.ApplicationDomainID
    override var applicationDomain: IIMSApplicationDomain by hasOne(ShiftHistories.ApplicationDomainID) { IMSApplicationDomain(it) }
    override var meAccountGUID: String by ShiftHistories.MeAccountGUID
    override var thatAccountGUID: String by ShiftHistories.ThatAccountGUID
    override var moneyBoxAmount: Float by ShiftHistories.MoneyBoxAmount
    override var shiftComment: String by ShiftHistories.ShiftComment
    override var goToWorkTime: DateTime by ShiftHistories.GoToWorkTime
    override var goOffWorkTime: DateTime by ShiftHistories.GoOffWorkTime
    override var state: Int by ShiftHistories.State
}